package ALT.entities;

public class Entry {

	private static int COUNTER = 0;

	private String mOID;
	private String mTitle;
	private String mText;

	private Forum belongsTo;
	private Member writtenBy;

	public Entry(Member member, Forum forum, String title, String text) {
		this.mOID = String.valueOf(COUNTER++);

		this.writtenBy = member;
		this.belongsTo = forum;
		this.mTitle = title;
		this.mText = text;
	}

	/**
	 * @return the mOID
	 */
	public String getOID() {
		return mOID;
	}

	/**
	 * @return the mTitle
	 */
	public String getTitle() {
		return mTitle;
	}

	/**
	 * @param mTitle the mTitle to set
	 */
	public void setTitle(String mTitle) {
		this.mTitle = mTitle;
	}

	/**
	 * @return the mText
	 */
	public String getText() {
		return mText;
	}

	/**
	 * @param mText the mText to set
	 */
	public void setText(String mText) {
		this.mText = mText;
	}

	/**
	 * @return the belongsTo
	 */
	public Forum getBelongsTo() {
		return belongsTo;
	}

	/**
	 * @param belongsTo the belongsTo to set
	 */
	public void setBelongsTo(Forum belongsTo) {
		this.belongsTo = belongsTo;
	}

	/**
	 * @return the writtenBy
	 */
	public Member getWrittenBy() {
		return writtenBy;
	}

	/**
	 * @param writtenBy the writtenBy to set
	 */
	public void setWrittenBy(Member writtenBy) {
		this.writtenBy = writtenBy;
	}
}
